//
//  SynDetailsSecondCell.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 10/20/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "SynDetailsSecondCell.h"

@implementation SynDetailsSecondCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self makeViews];
    }
    return self;
}

-(void)makeViews
{
    self.backgroundColor = UIColorFromRGB(0x999999);
    
    UIView * bgview = [UIView initViewRect:CGRectMake(0,0, UI_SCREEN_WIDTH, 30) andBackGroudColor:UIColorFromRGB(0xf1f1f1)];
    [self.contentView addSubview:bgview];
    
    UIImageView * iv1 = [UIImageView initImageViewRect:CGRectMake(22,15/2.0f, 15,15) andImage:LOADIMAGE(@"gouxuan@2x") andUserInteractionEnabled:NO];
    [bgview addSubview:iv1];
    
    UIImageView * iv2 = [UIImageView initImageViewRect:CGRectMake(160+22,15/2.0f, 15,15) andImage:LOADIMAGE(@"gouxuan@2x") andUserInteractionEnabled:NO];
    [bgview addSubview:iv2];
    
    UILabel * lb1 = [UILabel initLabelText:@"随时退款" andRect:CGRectMake(width_x(iv1)+5, 0, 100, 30) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:12] andTextColor:UIColorFromRGB(0x929292) andTextAlignment:NSTextAlignmentLeft];
    [bgview addSubview:lb1];
    
    UILabel * lb2 = [UILabel initLabelText:@"免费重拍" andRect:CGRectMake(width_x(iv2)+5, 0, 100, 30) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:12] andTextColor:UIColorFromRGB(0x929292) andTextAlignment:NSTextAlignmentLeft];
    [bgview addSubview:lb2];
    
    UIView * sline = [UIView initViewRect:CGRectMake(160, 3, 0.5, 24) andBackGroudColor:UIColorFromRGB(0xc7c7c7)];
    [bgview addSubview:sline];

}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
